<?php
//$this->Html->scriptBlock($script, array('inline' => false));
?>
<div class="" style="text-align:right; padding-right:220px; margin:10px 0"><!--<b>Dated <?php echo date('jS M Y', strtotime($this->request->data['Accountresume']['to_date'])); ?></b>--></div>
<div class="title-body-content"><?php echo $title_for_layout; ?> <?php echo $this->request->data['Accountresume']['refid_edit']; ?></div>
<?php
$formUrl = array('controller' => 'accountresumes', 'action' => 'upload_cover_note', $this->request->data['Accountresume']['id']);
echo $this->Form->create('Accountresume', array('url' => $formUrl, 'type' => 'file'));
echo $this->Form->input('id');
?>
<div class="wrapper-form-broking clearfix">
    <div class="wrapper-broking-inquyri clearfix">
        <?php
        if($this->data['Accountresume']['attached'] != null) {
        ?>
        <div class="wrapper-inquirer clearfix">
            <span class="sp-inquirer" style="width: 200px;"><?php echo __('Cover Note file'); ?> :</span>
            <span class=""><?php echo $this->Html->link(substr($this->data['Accountresume']['path'], 9), $this->data['Accountresume']['path']); ?> </span>
            <?php
            echo $this->Form->input('attached', array( 'type' => 'hidden' ,'label' => false, 'class' => 'sel-inquirer' ,'div' => false, 'value' => $this->data['Accountresume']['attached'], 'readonly' => 'readonly'));
            ?>
        </div>
        <?php } ?>
        <div class="wrapper-file-attach clearfix">
            <span class="sp-inquirer" style="width: 200px;"><?php echo __('Upload new Cover Note'); ?> (*):</span>
            <?php echo $this->Form->input('file', array('label' => false, 'div' => false, 'type' => 'file',)); ?>
            <span style="font-style: italic;">Allow file format: *.pdf *.doc, *.docx, *.xls, *.xlsx, *.txt.</span>
        </div>
    </div>
</div>
<div class="wrapper-button-form">
    <div class="button-form">
        <div class="button-aihre button-blue"><a href="#" onclick="$('#AccountresumeAdminUploadCoverNoteForm').submit()">SAVE</a></div>
        <div class="button-aihre button-blue"><a href="#" onclick="self.close()">CANCEL</a></div>
    </div>
</div>
<?php
echo $this->Form->end();
?>